package com.gongj.secuitydb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.gongj.secuitydb.entity.Role;
import com.gongj.secuitydb.entity.User;

public interface UserMapper {

    @Select("select * from user where username = #{username}")
    User loadUserByUsername(String username);


    List<Role> getUserRoleById(Integer id);

}
